﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using TerminationCall.Core;

namespace TerminationCall.Editor.Logic {

    public class BrushPainterFactory : IPainterFactory {

        public BrushPainterFactory() {
            Size = 1;
            Autoborder = true;
        }

        public string Name {
            get {
                return "BrushPainter";
            }
        }

        public EditorTool EditorTool { get; set; }

        public int Size { get; set; }
        public bool Autoborder { get; set; }

        public IPainter CreatePainter(Point point) {

            BrushPainter brushPainter = new BrushPainter(point);
            brushPainter.Size = Size;
            brushPainter.Autoborder = Autoborder;

            return brushPainter;
        }

    }

}
